package com.gk.panda.apis.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gk.panda.commons.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("生物名录查询实体")
public class BiodiversitySearchDto extends BaseDto {

    @ApiModelProperty(value = "界名（0-动物，1-植物）")
    private int kingdom;

    @ApiModelProperty(value = "模糊搜索条件")
    private String searchParam;

    @ApiModelProperty(value = "机构id")
    private List<Integer> orgIds;

    @ApiModelProperty(value = "起始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "终止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "保护等级")
    private List<String> protectionLevel;

    @ApiModelProperty(value = "IUCN等级")
    private List<String> iucnLevel;

    @ApiModelProperty(value = "CITES附录")
    private List<String> citesAppendix;
}
